<script context="module">
  export async function load({ page }) {
    return {
      props: {
        localeFromPath: page.params.locale
      }
    }
  }
</script>

<script>
  import '../../config/i18n';
  export let localeFromPath;

	import { locale } from 'svelte-i18n';
  import LanguageSelector from '$lib/components/language_selector.svelte';

  locale.set(localeFromPath);
</script>

<slot />
<LanguageSelector/>
